package charpter06;

/**
 * Created by Miracle yaochengwei on 2022/5/2 11:09
 */
public class DoWhile003 {
    //编写一个 main方法

    public static void main(String[] args) {
        //计算 1—100 的和[学生做]

        int i = 1;
        int sum = 0;
        do {
            sum += i;
            i++;
        } while (i <= 100);
        System.out.println(sum);
    }
}
